<template>
  <j-select-biz-component
    :value="value"
    name="物料分类"
    displayKey="name"
    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    v-on="$listeners"
    v-bind="$attrs"
  />
</template>

<script>
import JSelectBizComponent from '@/components/jeecgbiz/JSelectBizComponent'

export default {
  name: 'SelectGoodsClassification',
  components: { JSelectBizComponent },
  props: ['value'],
  data() {
    return {
      returnKeys: ['categoryNo', 'name'],
      url: { list: '/erp/base/erpGoodsClassification/list' },
      columns: [
        { title: '物料分类编号', dataIndex: 'categoryNo', align: 'center', width: 120 },
        { title: '物料分类名称', dataIndex: 'name', align: 'center', width: 120 },
      ],
    }
  },
}
</script>

<style lang="less" scoped></style>